package com.house.model;

import java.util.Date;

public class Message {
    private Integer id;

    private Integer fromuserid;

    private Integer touserid;

    private Date createtime;

    private Integer isread;

    private Integer isdeletedbyformuser;

    private Integer isdeletedbytouser;

    private String content;

    public Message(Integer id, Integer fromuserid, Integer touserid, Date createtime, Integer isread, Integer isdeletedbyformuser, Integer isdeletedbytouser, String content) {
        this.id = id;
        this.fromuserid = fromuserid;
        this.touserid = touserid;
        this.createtime = createtime;
        this.isread = isread;
        this.isdeletedbyformuser = isdeletedbyformuser;
        this.isdeletedbytouser = isdeletedbytouser;
        this.content = content;
    }

    public Message() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFromuserid() {
        return fromuserid;
    }

    public void setFromuserid(Integer fromuserid) {
        this.fromuserid = fromuserid;
    }

    public Integer getTouserid() {
        return touserid;
    }

    public void setTouserid(Integer touserid) {
        this.touserid = touserid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getIsread() {
        return isread;
    }

    public void setIsread(Integer isread) {
        this.isread = isread;
    }

    public Integer getIsdeletedbyformuser() {
        return isdeletedbyformuser;
    }

    public void setIsdeletedbyformuser(Integer isdeletedbyformuser) {
        this.isdeletedbyformuser = isdeletedbyformuser;
    }

    public Integer getIsdeletedbytouser() {
        return isdeletedbytouser;
    }

    public void setIsdeletedbytouser(Integer isdeletedbytouser) {
        this.isdeletedbytouser = isdeletedbytouser;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }
}